home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / system / emulator / bsvc-1.000 / bsvc-1 / bsvc-1.0.4 / src / Makefile.common next >
Makefile  |  1995-07-26  |  2KB  |  90 lines

  1. ###############################################################################
  2. # $Header:$
  3. ###############################################################################
  4. #
  5. # Makefile.common - System Independent Makefile
  6. #
  7. # Bradford W. Mott
  8. # July 3,1994
  9. #
  10. ###############################################################################
  11. # $Log:$
  12. ###############################################################################
  13.  
  14. ## Base Directory of the BSVC distribution
  15. PROJECT_BASE = /home/bmott/projects/bsvc/bsvc-1.0.4
  16.  
  17. ## Directory to install the BSVC system
  18. INSTALL_DIR = $(PROJECT_BASE)/bin
  19.  
  20. ## Name or path and Name of the Tcl/Tk "wish" executable
  21. #WISH        = /usr/local/bin/wish
  22. WISH         = wish
  23.  
  24. ## Name of WWW Browser and URL of the BSVC Home Page (or blank)
  25. WWW_BROWSER   = 
  26. WWW_HOME_PAGE = 
  27. #WWW_BROWSER   = netscape
  28. #WWW_HOME_PAGE = http://www2.ncsu.edu/eos/service/ece/project/bsvc/www/
  29.  
  30. ## List of subdirectories that need to be made
  31. SUBDIRS = Assemblers Framework UI Sim68000 SimHector Tools
  32.  
  33. ######################### END OF CONFIGURATION ################################
  34.  
  35. INDEPENDENT_PARMS = PROJECT_BASE='$(PROJECT_BASE)' WISH='$(WISH)' \
  36.     INCLUDES='-I$(PROJECT_BASE)/src/Framework $(SYS_INCLUDE)' \
  37.     LIBS='$(SYS_LIBS)' INSTALL_DIR='$(INSTALL_DIR)' \
  38.     WWW_BROWSER='$(WWW_BROWSER)' WWW_HOME_PAGE='$(WWW_HOME_PAGE)'
  39.  
  40. MAKEPARMS = $(INDEPENDENT_PARMS) $(DEPENDENT_PARMS)
  41.  
  42. all: subdirectories
  43.  
  44. subdirectories:
  45.     @for dir in $(SUBDIRS); \
  46.     do \
  47.         echo ""; \
  48.         echo "------ Building: $$dir"; \
  49.         cd $$dir; \
  50.         make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" all; \
  51.         if [ $$? -eq 0 ] ; \
  52.         then \
  53.             cd ..; \
  54.         else \
  55.             exit 1; \
  56.         fi \
  57.     done
  58.  
  59. install:
  60.     @for dir in $(SUBDIRS); \
  61.     do \
  62.         echo ""; \
  63.         echo "------ Installing: $$dir"; \
  64.         cd $$dir; \
  65.         make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" install; \
  66.         if [ $$? -eq 0 ] ; \
  67.         then \
  68.             cd ..; \
  69.         else \
  70.             exit 1; \
  71.         fi \
  72.     done
  73.  
  74. clean:
  75.     @for dir in $(SUBDIRS); \
  76.     do \
  77.         echo ""; \
  78.         echo "------ Cleaning: $$dir"; \
  79.         cd $$dir; \
  80.         make $(MAKEPARMS) MAKEPARMS="$(MAKEPARMS)" clean; \
  81.         if [ $$? -eq 0 ] ; \
  82.         then \
  83.             cd ..; \
  84.         else \
  85.             exit 1; \
  86.         fi \
  87.     done
  88.  
  89.  
  90.